<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>地址管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/css/see/reset.min.css">
    <link rel="stylesheet" href="/css/see/address.min.css?v=<%=$version%>">
</head>
<body style="background: #F5F5F5;">
<div id="address" v-cloak :class="{'address1':type==2}">
    <div class="circleBar-top">
        <span class="goback" @click="getBack()"></span>
        {{name}}
        <strong class="seeIndex-setUp" @click="getNext(1)" v-if="type==1||type==3"><span>+</span>新建</strong>
    </div>
    <div class="address-cent" v-if="type==1||type==3">
        <div class="address-list clearfix" :class="{'active':item.isDefault==1}" v-for="item in addressList">
            <div class="address-listLeft" @click="getNext(4,item.addressId)">
                <div class="address-listCent">
                    <h6><span class="address-default" v-if="item.isDefault==1">默认</span><span class="address-listName">{{item.consignee}}</span>{{item.phone}}</h6>
                    <p>{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</p>
                    <!--<p>送货时间</p>-->
                </div>
                <strong class="address-modify" @click.stop="getNext(2,item.addressId)"></strong>
            </div>
            <div class="sl-opts" @click="deleteUserDeliveryAddress(item.addressId)">
                <span>删除</span>
                <!--<span style="background-color: #ff9c00; color: #fff;">分享</span>-->
            </div>
        </div>
    </div>
    <div class="address-cent address-cent1" v-if="type==2">
        <div class="address-list clearfix" @click="getIsClassify(item.addressId)" :class="{'active':item.isDefault==1}" v-for="item in addressList">
            <div class="address-listLeft returnAddress">
                <div class="returnAddress-cent">
                    <h6><span class="returnAddress-default" v-if="item.isDefault==1">默认</span><span class="returnAddress-listName">{{item.consignee}}</span>{{item.phone}}</h6>
                    <p>{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</p>
                    <!--<p>送货时间</p>-->
                </div>
                <strong class="address-modify" @click="getNext(2,item.addressId)"></strong>
            </div>
            <div class="sl-opts" @click.stop="deleteUserDeliveryAddress(item.addressId)">
                <span>删除</span>
                <!--<span style="background-color: #ff9c00; color: #fff;">分享</span>-->
            </div>
        </div>
    </div>
    <div class="myCommodity-btn" v-if="type==2" @click="getNext(3)"><a>添加新地址</a></div>
    <pop-view v-show="pop.show" @on="getIsClassify()" :question="pop.question" @ok="agreeReturnGoods()"></pop-view>
    <prompt-view ref="prompt"></prompt-view>
</div>
<script src='/plugins/js/jquery-1.11.3.min.js'></script>
<script src='/plugins/js/zepto1.20.js'></script>
<script type="text/javascript" src="/plugins/js/vue.min.js"></script>
<script type="text/javascript" src="/js/see/address.js?v=<%=$version%>"></script>
<script type="text/javascript" src="/js/see/slideleft.js"></script>
</body>
</html>